﻿using System;
using System.Threading;
using CAW.DAO;
using System.Security;

namespace CAW.console
{
    class Program
    {
        private Model _model; 

        private void timerCallback(object state)
        {
            Console.WriteLine("{0} Games Waiting", _model.GetWaitingGamesCount());
        }

        public void Go()
        {
            Timer t = new Timer(new TimerCallback(timerCallback), null, 0, 30000);
            Console.ReadKey();
        }

        static void Main(string[] args)
        {
            Program p = new Program();
            p._model = new Model();
            p.Go();
        }
    }
}
